﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.PowerPoint;
using ObjectModel.PowerPoint.New;

namespace ObjectModel.PowerPoint
{
    public static class Globals
    {
        static PresentationEventsManager mPresentationEvents;
        static PresentationConstantsManager mPresentationConstants;

        public static Application Application { get; set; }

        public static PresentationEventsManager PresentationEvents
        {
            get
            {
                // Note: lazy instantiation is used here because initialising the field directly
                // results in a runtime error.
                if (mPresentationEvents == null)
                    mPresentationEvents = new PresentationEventsManager();

                return mPresentationEvents;
            }
        }

        public static PresentationConstantsManager PresentationConstants
        {
            get
            {
                // Note: lazy instantiation is used here because initialising the field directly
                // results in a runtime error.
                if (mPresentationConstants == null)
                    mPresentationConstants = new PresentationConstantsManager();

                return mPresentationConstants;
            }
        }
    }
}
